Skip to content

Set ITK to be single threaded in the characterize_data script.#477

Merged
zivy merged 1 commit intoInsightSoftwareConsortium:masterfrom
zivy:stabilizeParallelization
Apr 14, 2025
Merged

Set ITK to be single threaded in the characterize_data script.#477
zivy merged 1 commit intoInsightSoftwareConsortium:masterfrom
zivy:stabilizeParallelization

Conversation

@zivy
Copy link
Copy Markdown
Member

@zivy zivy commented Apr 14, 2025

The characterize_data script uses multi-processing for concurrency. ITK filters use multi-threading as part of each process. There is the potential for contention when too many threads are created as compared to the number of available cores on the CPU. The solution here is to set ITK to run in single threaded mode and the speedup is obtained from the parallel processes.

The characterize_data script uses multi-processing for
concurrency. ITK filters use multi-threading as part of each process. There
is the potential for contention when too many threads are created as
compared to the number of available cores on the CPU. The solution
here is to set ITK to run in single threaded mode and the speedup is
obtained from the parallel processes.
@zivy zivy merged commit 5afc2c9 into InsightSoftwareConsortium:master Apr 14, 2025
9 checks passed
@zivy zivy deleted the stabilizeParallelization branch April 14, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant